<template>
  <div class="item-edit" @click="$emit('customEdit')">
    <div class="left">
      <p class="name">{{customInfo.name}}</p>
      <p class="phone">{{customInfo.phone}}</p>
    </div>
    <div class="right">
      <i></i>
      <span>编辑</span>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    customInfo: {
      type: Object,
      default: () => ({})
    }
  }
}
</script>
<style lang="scss" scoped>
.item-edit {
  width: 100%;
  padding-top: 0.62rem;
  padding-bottom: 0.31rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 0.33rem;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(0, 4, 0, 0.3);
  .left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    .name {
      font-size: 0.28rem;
      font-family: PingFang SC;
      font-weight: 400;
      color: rgba(0, 4, 0, 1);
    }
    .phone {
      font-size: 0.22rem;
      font-family: PingFang SC;
      font-weight: 400;
      color: rgba(51, 51, 51, 1);
      margin-top: 0.25rem;
    }
  }
  .right {
    font-size: 0;
    display: flex;
    align-items: center;
    i {
      display: inline-block;
      width: 0.32rem;
      height: 0.32rem;
      vertical-align: middle;
      background: url("../assets/images/icon_bjzl.png") no-repeat;
      background-size: cover;
      margin-right: 0.16rem;
    }
    span {
      font-size: 0.26rem;
      font-family: PingFang SC;
      font-weight: 400;
      color: rgba(0, 4, 0, 1);
    }
  }
}
</style>
